import instanse from "../index";

const prefix = "/api/chatUserApplication/"

 const ChatUserApplicationApi = {
    friendApplication: (friendName:string) => {
        return instanse.post(prefix + 'friendApplication',{
            userName:friendName
        })
    },
    getApplications: () => {
        return instanse.get(prefix + 'getApplications')
    },
    respondToFriendApplication: (id:string,status:string) => {
        return instanse.post(prefix + 'respondToFriendApplication',{
            id,
            status
        })
    }
}
export default ChatUserApplicationApi